<!--
 * @Descripttion: 
 * @Author: cbing
 * @Date: 2019-04-22 15:31:00
 * @LastEditors: cbing
 * @LastEditTime: 2019-09-06 19:52:29
 -->
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title></title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <link rel="shortcut icon" href="favicon.ico"> 
	<link href="__PUBLIC__/admin/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="__PUBLIC__/admin/css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link href="__PUBLIC__/admin/css/style.css?v=4.1.0" rel="stylesheet">
    <link href="__PUBLIC__/admin/css/page.css" rel="stylesheet">
    <link href="__PUBLIC__/admin/js/plugins/fancybox/jquery.fancybox.css" rel="stylesheet">
</head>

<body class="gray-bg">
    <style>
	.qiehuan{
	    width:120px; height:40px; line-height:40px; font-size:14px; font-weight:bold; color:#333; background-color:#F5F5F6; float:left; margin-right:10px; text-align:center; cursor:pointer;
	}
	</style>
    <div class="wrapper wrapper-content" id="server">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>直播举报列表</h5>
                    </div>
                    <div class="ibox-content">
                        <div class="row" style="margin-top:10px;margin-bottom:20px;">
                            <form action="{:url('finds/lst')}" method="post" id="form_search">
                            <div class="col-sm-3" style="float:right;">
                                <div class="input-group">
                                    <input type="text" name="keyword" placeholder="请输入描述关键字/电话/用户名" value="{:input('param.keyword')}" class="input-sm form-control">
                                    <span class="input-group-btn"><button type="submit" class="btn btn-sm btn-primary" id="submit_search2">搜索</button></span>
                                </div>
                            </div>
                           </form>
                           
                        </div>  
                        
                        
                        <div id="ajaxpagetest">
                            <table class="table table-hover table-bordered">
                                <thead>
                                <tr>
                                    <th style="width:10%">举报人</th>
                                    <th style="width:10%">举报类型</th>
                                    <th style="width:20%">举报内容</th>
                                    <th style="width:10%">图片</th>
                                    <th style="width:10%">举报时间</th>
                                    <th style="width:10%">处理时间</th>
                                    <th style="width:10%">举报商家</th>
                                    <th style="width:10%">处理状态</th>
                                    <th style="width:5%">操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                {if condition="$list->isEmpty() == false"}
                                {foreach name="list" item="v"}
                                <tr>
                                    <td>{$v.uid|getusernumber}</td>
                                    <td>{$v.type}</td>
                                    <td>{$v.tips}</td>
                                    <td>
                                        {foreach name="v.pic" item="v2"}
                                        <a class="fancybox" href="{$v2}" title="{$v.type}">
                                            <img style="max-width: 100px; max-height: 100px; margin: 5px;" src="{$v2}" alt="">
                                        </a>
                                        {/foreach}
                                    </td>
                                    <td>{$v.createtime|date="Y-m-d H:i:s",###}</td>
                                    <td>{notempty name="v.handletime"}{$v.handletime|date="Y-m-d H:i:s",###}{/notempty}</td>
                                    <td>{$v.shop_name}</td>
                                    <td>
                                        {if condition="$v['status'] eq 1"}已处理
                                        {else/}处理中
                                        {/if}
                                    </td>
                                    <td>
                                         <a href="{:url('info',array('id'=>$v['shop_id'],'uid'=>$v['uid']))}" class="btn btn-primary btn-xs"><i class="fa fa-lock"></i>&nbsp;处理</a>&nbsp;&nbsp;&nbsp;&nbsp;
                                    </td>
                                </tr>
                                {/foreach}
                                {else/}
                                <tr><td colspan="8" style="text-align:center; font-size:14px;">没有找到相关数据</td></tr>
                                {/if}
                                </tbody>
                            </table>
                            <div class="row"><div class="pagination" style="float:right; margin-right:20px;">{$page}</div></div>
                        </div>                        
                        

                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- 全局js -->
    <script src="__PUBLIC__/admin/js/jquery.min.js?v=2.1.4"></script>
    <script src="__PUBLIC__/admin/js/plugins/layer/layer.min.js"></script>
    <script src="__PUBLIC__/admin/js/bootstrap.min.js?v=3.3.6"></script>
    <script src="__PUBLIC__/admin/js/plugins/validate/jquery.validate.min.js"></script>
    <!-- iCheck -->
    <script src="__PUBLIC__/admin/js/plugins/iCheck/icheck.min.js"></script>
    <!-- Fancy box -->
    <script src="__PUBLIC__/admin/js/plugins/fancybox/jquery.fancybox.js"></script>
    <script>
        $(document).ready(function () {
            $('.fancybox').fancybox({
                openEffect: 'none',
                closeEffect: 'none'
            });
        });
    </script>
    <script type="text/javascript">
        /**
         * 筛选查询
         */
        $("ul li a").on("click",function (e) {
            var url = $(this).attr("href");
            var formdata = $("#form_search").serialize();
            if(url.indexOf('?')<=-1){
                url = url+"?"+formdata;
            }else{
                url = url+"&"+formdata;
            }
            e.preventDefault();
            $(location).attr('href', url);
        });


        /*
        显示隐藏
         */
        function changeTableVal(id) {
            $.ajax({
                url:"{:url('finds/isshow')}",
                type:'POST',
                data:{id:id},
                dataType:'json',
                success:function(data) {
                    if(data.code == 200){
                        layer.msg(data.msg);
                        window.setTimeout(function () {
                            location.reload();
                        },1000);
                    }else{
                        layer.msg(data.msg)
                    }
                }

            });
        }
    </script>
	
</body>
</html>